<template>
     <div>
     <ul v-for="(item, index) in movies" :key="item.id">
    <li>{{item.name}}----{{item.score}}</li>
     </ul>
     </div>
    </template>
    <script setup>
    import { ref } from 'vue'
    let movies=ref([
    {id:1,name:'罪恶之城1',score:9.0},
    {id:2,name:'罪恶之城2',score:8.5},
    {id:3,name:'黑吃黑',score:9.0},
    {id:4,name:'落水狗',score:8.0},
    {id:5,name:'被解放的姜戈',score:9.0}
    ])
    </script>